import axios from "axios";
const request = axios.create({
  baseURL: "https://some-domain.com/api/",
  timeout: 1000,
  headers: {
    "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
  },
});
request.interceptors.request.use(
  (config) => {
    if (config.method == "post") {
      config.data = config.data;
    }
    return config;
  },
  (err) => {
    return Promise.reject(error);
  }
);
